{% extends "accounts/template.html" %}
{% load staticfiles %}
{% block title %}Automan-注册{% endblock %}

{% block content %}
<form class="form form-horizontal" action="" method="post">
    {% csrf_token %}
    <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
        <div class="formControls col-xs-8">
            {{ form.username }}
        </div>
    </div>
    <div class="row c1">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe63b;</i></label>
        <div class="formControls col-xs-8">
            {{ form.email }}
        </div>
    </div>
    <div class="row c1">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-xs-8">
            {{ form.password }}
        </div>
    </div>
    <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-xs-8">
            {{ form.password2 }}
        </div>
    </div>
    <div class="row cl text-c">
        {% for item in error %}
        <p style="color:red;" class="text-c">{{ item }}</p>
        {% endfor %}
        <div class="formControls">
            <input type="hidden" name="next" value="{{ request.GET.next }}"/>
            <input type="submit" class="btn btn-success radius size-L" value="&nbsp;注&nbsp;&nbsp;&nbsp;&nbsp;册&nbsp;"/>
            <input type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;"/>
            <a href="{% url 'login' %}"><span class="btn btn-primary-outline radius size-L">登录</span></a>
        </div>
    </div>
</form>
{% endblock %}